class ContactMailer < ActionMailer::Base
  
  def contact_notification(contact_handler)
    setup_default_params
    
    @recipients  = MODERATOR_EMAIL
    @subject     = "kandp.com.ua: #{contact_handler.subject}"
    
    @body[:contact_handler] = contact_handler
    
  end
  
  private
  
    def setup_default_params
      @from = "kandpco@gmail.com"
      @headers = "Reply-to info@kandp.com.ua"
      @sent_on = Time.now
      @content_type = "text/html"
    end

end
